package com.mrzhang.glpt.server.system;

import com.mrzhang.common.annotation.EnableGlptAuthExceptionHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableDiscoveryClient
@EnableGlobalMethodSecurity(prePostEnabled = true)//表示开启Spring Cloud Security权限注解
@EnableGlptAuthExceptionHandler//构造自定义异常处理 自动注入Bean
@MapperScan("com.mrzhang.glpt.server.system.mapper")
@EnableTransactionManagement
public class GlptServerSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(GlptServerSystemApplication.class, args);
    }

}
